﻿<phone:PhoneApplicationPage
    x:Class="wp8nop.Registrazione"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d"
    xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
    toolkit:TiltEffect.IsTiltEnabled="True"
    shell:SystemTray.IsVisible="True">
    <phone:PhoneApplicationPage.Resources>
        <SolidColorBrush x:Key="BrushViolaScuro" Color="#FFAE558A"/>
        <DataTemplate x:Key="ProvinceDataTemplate">
            <Grid>
                <TextBlock Text="{Binding Descrizione}" FontSize="36"/>
            </Grid>
        </DataTemplate>
        <DataTemplate x:Key="ProvinceDataSmallTemplate">
            <Grid>
                <TextBlock Text="{Binding Descrizione}" FontSize="24"/>
            </Grid>
        </DataTemplate>
    </phone:PhoneApplicationPage.Resources>
    <phone:PhoneApplicationPage.Foreground>
        <SolidColorBrush Color="White"/>
    </phone:PhoneApplicationPage.Foreground>

    <!--LayoutRoot è la griglia radice in cui viene inserito tutto il contenuto della pagina-->
    <Grid x:Name="LayoutRoot" Background="White">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <!--TitlePanel contiene il nome dell'applicazione e il titolo della pagina-->
        <Grid Height="55" VerticalAlignment="Top" Background="{StaticResource BrushViola}"/>

        <!--TitlePanel contiene il nome dell'applicazione e il titolo della pagina-->
        <StackPanel Grid.Row="0" Margin="12,17,0,28">
            <TextBlock Text="24CARATI.COM" Style="{StaticResource PhoneTextNormalStyle}" Foreground="Black"/>
            <TextBlock Text="registrazione" Margin="9,-7,0,0" Style="{StaticResource PhoneTextTitle1Style}" Foreground="Black"/>
        </StackPanel>
        <ProgressBar
            VerticalAlignment="Bottom"
            Background="{x:Null}"
            Margin="0,0,0,0"
            Foreground="Red"
            Name="progress"
            IsIndeterminate="{Binding IsLoading}"/>
        <StackPanel x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
            <Grid Height="72">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="29*"/>
                    <ColumnDefinition Width="85*"/>
                </Grid.ColumnDefinitions>
                <TextBlock Text="email" Foreground="Black" FontSize="24" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="6,20,10,20" Width="100"/>
                <TextBox x:Name="tbemail" Text="" BorderBrush="#BF666666" Grid.Column="1" InputScope="EmailUserName"/>
            </Grid>
            <Grid Height="72">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="29*"/>
                    <ColumnDefinition Width="85*"/>
                </Grid.ColumnDefinitions>
                <TextBlock Text="password" Foreground="Black" FontSize="24" HorizontalAlignment="Center" VerticalAlignment="Center" Height="32" Margin="6,20,10,20" Width="100"/>
                <PasswordBox x:Name="tbpassword" Password="" BorderBrush="#BF666666" Grid.Column="1"/>
            </Grid>
            <Grid Height="72">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="29*"/>
                    <ColumnDefinition Width="85*"/>
                </Grid.ColumnDefinitions>
                <TextBlock Text="nome" Foreground="Black" FontSize="24" HorizontalAlignment="Center" VerticalAlignment="Center" Height="32" Margin="6,20,10,20" Width="100"/>
                <TextBox x:Name="tbnome" Text="" BorderBrush="#BF666666" Grid.Column="1"/>
            </Grid>
            <Grid Height="72">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="29*"/>
                    <ColumnDefinition Width="85*"/>
                </Grid.ColumnDefinitions>
                <TextBlock Text="cognome" Foreground="Black" FontSize="24" HorizontalAlignment="Center" VerticalAlignment="Center" Height="32" Margin="6,20,10,20" Width="100"/>
                <TextBox x:Name="tbcognome" Text="" BorderBrush="#BF666666" Grid.Column="1"/>
            </Grid>
            <Grid Height="72">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="29*"/>
                    <ColumnDefinition Width="85*"/>
                </Grid.ColumnDefinitions>
                <TextBlock Text="indirizzo" Foreground="Black" FontSize="24" HorizontalAlignment="Center" VerticalAlignment="Center" Height="32" Margin="6,20,10,20" Width="100"/>
                <TextBox x:Name="tbindirizzo" Text="" BorderBrush="#BF666666" Grid.Column="1"/>
            </Grid>
            <Grid Height="72">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="29*"/>
                    <ColumnDefinition Width="85*"/>
                </Grid.ColumnDefinitions>
                <TextBlock Text="citta" Foreground="Black" FontSize="24" HorizontalAlignment="Center" VerticalAlignment="Center" Height="32" Margin="6,20,10,20" Width="100"/>
                <TextBox x:Name="tbcitta" Text="" BorderBrush="#BF666666" Grid.Column="1"/>
            </Grid>
            <Grid Height="72">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="52*"/>
                    <ColumnDefinition Width="155"/>
                    <ColumnDefinition Width="249*"/>
                </Grid.ColumnDefinitions>
                <TextBlock Text="cap" Foreground="Black" FontSize="24" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="7,20"/>
                <TextBox MaxLength="5" x:Name="tbcap" Text="" BorderBrush="#BF666666" Grid.Column="1" InputScope="Number"/>
                <toolkit:ListPicker Name="lpProvince" Grid.Column="2" ExpansionMode="FullScreenOnly" BorderBrush="#BF666666" Margin="0,2,0,5" Foreground="Black" ItemTemplate="{StaticResource ProvinceDataSmallTemplate}" FullModeItemTemplate="{StaticResource ProvinceDataTemplate}"/>
            </Grid>
            <Button Margin="0,10,0,0" HorizontalAlignment="Center" Padding="0" Style="{StaticResource ButtonStyle1}" Click="Registrati_Click" >
                <Grid Height="57" Width="250">
                    <Image Source="/Assets/Button.png"/>
                    <TextBlock Text="REGISTRATI" Foreground="{StaticResource BrushViola}" HorizontalAlignment="Center" VerticalAlignment="Center" FontFamily="AvantGarde Normal" FontSize="36"/>
                </Grid>
            </Button>
        </StackPanel>

        <!--ContentPanel - inserire ulteriore contenuto qui-->
    </Grid>

</phone:PhoneApplicationPage>